import { createVNode } from "vue";
import * as $Icon from "@ant-design/icons-vue";
/**
 * vue3处理antd-vue动态加载图标的方式
 * @param  props
 * @returns
 */
const AntdIcon = (props) => {
  const { icon } = props;
  return createVNode($Icon[icon]);
};

export default AntdIcon;
